<?php
use \GatewayWorker\Lib\Gateway;


class cmd_chat extends cmdbase
{
	
	public function onCmd($msg){
		$msg_body = new chat_rsp();
		$msg_body->ret = NetErrorCode::None;

		$msg_notify = new notify_chat();
		$msg_notify->uid = $this->getCurUid();
		$msg_notify->msg = $msg->msg;
		$this->sendToGroup(notify_chat::class, $msg_notify);
 		return $msg_body;
	}
}